package com.dnzx.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.dnzx.model.SubCategoryBO;

@Repository
public interface ISubCategoryDao {

	public void save(SubCategoryBO subCategoryBO);

	public void delete(Long id);
	
	public void deleteByCategoryId(Long categoryId);

	public void update(SubCategoryBO subCategoryBO);

	public SubCategoryBO get(Long id);

	public List<SubCategoryBO> queryList(SubCategoryBO subCategoryBO);

	public List<SubCategoryBO> queryPage(@Param("pageSize") int pageSize,
                                      @Param("startRow") int startRow, @Param("bo") SubCategoryBO bo);
	
	public int queryCount(SubCategoryBO subCategoryBO);

}
